package org.tgcloud.group.web.controller.app;

import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.*;
import org.tgcloud.group.core.APPResultMessage;
import org.tgcloud.group.core.session.Session;
import org.tgcloud.group.service.app.SysService;
import org.tgcloud.group.web.controller.manager.ManageAPPBaseController;
import org.tgcloud.group.web.controller.req.sysLabel.SysLabelIdReq;

/**
 * @author: zhy
 * @create: 2023-09-21 17:19
 * @description: 系统相关接口
 */
@Api(tags = "系统管理相关接口")
@RestController
@RequestMapping("/app/user")
@EnableAutoConfiguration
public class SysController extends ManageAPPBaseController {

    @Autowired
    private SysService sysService;

    @ApiOperation(value = "分类值列表")
    @ApiImplicitParams({
    })
    @ApiResponses({
            @ApiResponse(code = 2000, message = "出现异常，及时通知后台")
    })
    @ResponseBody
    @PostMapping(value = "/getSysLabelValueManageList")
    public APPResultMessage getSysLabelValueManageList(@RequestBody SysLabelIdReq req,
                                                       @ModelAttribute("session") Session session) {
        return sysService.getSysLabelValueManageList(req);
    }

}
